﻿using System;
using Newtonsoft.Json;
using NETCore.Encrypt;

namespace MyFramework.Helper
{
    public class EncryptHelper
    {
        public static string GetAESKEY()
        {
            var aesKey = EncryptProvider.CreateAesKey();
            var key = aesKey.Key;
            var iv = aesKey.IV;
          return  JsonConvert.SerializeObject(new {key=key,iv=iv });
        }
    }
}
